export const getBgStyle = (orgin, prefix) => {
  const { theme, allImgs } = orgin
  const name = `${prefix}${theme}`
  const url = allImgs.hasOwnProperty(name) ? allImgs[name] : null
  return url ? {
    url,
    backgroundImage: `url(${url})`,
    backgroundSize: '100% 100%',
    backgroundRepeat: 'no-repeat'
  } : {}
}